<?php
class PitchSubscriptionsController extends AppController {

	var $name = 'PitchSubscriptions';

	function index() {
		$pitches = $this->PitchSubscription->find_subscribed($this->Session->read('Auth.User.id'), 'all');
		$this->set(compact('pitches'));
	}

	function view($id = null) {
		if (!$id) {
			$this->Session->setFlash(__('Niet geldige deelname aan opdracht.', true));
			$this->redirect(array('action' => 'index'));
		}
		$this->set('pitchSubscription', $this->PitchSubscription->read(null, $id));
	}
}
?>
